import { Navigate } from "react-router-dom";
import Home from "../view/home/home"
import Register from "../view/register/register"
import Login from "../view/login/login"
import Shopping from "../view/shopping/shopping"
import MaSearch from "../view/MaSearch/MaSearch"

export default [
    {
        path: "/",
        element: <Navigate to="/home" replace />
    },
    {
        path: '/home',
        element: <Home />
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/register',
        element: <Register/>
    },
    {
        path: '/shopCar',
        element: <Shopping/>
    },
    {
        path: '/maSearch',
        element: <MaSearch/>
    }
]

